package racer.client.gui.tiles;

/**
 *
 * @author Lieven
 */
public class TileTypeNeighbours {
  private String type;   
  //x en y zijn coordinaten van linkerbovenhoek van afbeelding
  private int left;
  private int right;
  private int top;      
  private int bottom;     
  
      
 /**
 *TileTypeNeighbours Object: each tile has 4 immediate neighbourtiles,defined by their tile ids. 
 *<br>In Each boundary direction can be set as an integer,defining neighbour tile id
  * <p><b>IMPORTANT</b>: these objects are often used to set bits (1=free/0=wall) at each direction,depending on the tile type
  * <br>f.e.: horizontal type has 2 free directions (left,right) and 2 walls (top,bottom) so its sometimes defined as: 
  * <br>TileTypeNeighbours ttH = new....("H",1,1,0,0). This is used to analyse which neighbour tiles to check (map collision and circularcheck)
 * @param  type tile type of the tile setting this neighbour object
 * @param left tile-id of left-sided neighbour tile
 * @param right tile-id of right-sided neighbour tile
  *@param top tile-id of top-sided neighbour tile
  *@param bottom tile-id of bottom-sided neighbour tile
 * @see Tile#Tile(int id,int x,int y,int w,int h,String type,TileTypeNeighbours ttn)

 */             
public TileTypeNeighbours(String type,int left,int right,int top,int bottom) {
     this.left=left;
     this.right=right;
     this.top=top;
     this.bottom=bottom;
     this.type=type;
}

public int getLeft(){
      return left;
}

public int getRight(){
      return right;
}

public int getTop(){
      return top;
}

public int getBottom(){
      return bottom;
}

public void setLeft(int left){
      this.left=left;
}    

public void setRight(int right){
      this.right=right;
}    

public void setTop(int top){
      this.top=top;
}    

public void setBottom(int bottom){
      this.bottom=bottom;
}    
    
}